import Mock from "mockjs";

export const userList = Mock.mock({
    "list|100": [
        {
            "id|+1": 1,
            "name": "@cname",
            "age|18-60": 18,
            "gender|1": ["女", "男"],
            "status|1-5": false,
            // Random.image( size?, background?, foreground?, format?, text? )
            "avatar": "@image('50x50', '@color', '@color', 'png', '@first')",
            "address": "@county",
            "create_time": "@datetime",
            // Random.datetime( format? )
            "update_time": "@datetime(\"A HH:mm:ss\")",
            "token": "@guid"
        }
    ],
    "token": "@guid"
})

export const noticeList = Mock.mock({
    "notices|10": [
        {
            "id|+1": 1,
            "title": "@ctitle(3, 5)",
            "description": "@cparagraph(1, 3)",
            "publish_time": "@datetime",
            "update_time": "@datetime(\"A HH:mm:ss\")",
        }
    ]
})